package com.untour.im.server.config;

import com.untour.im.server.service.DeviceMultiLoginService;
import com.untour.im.server.service.UserChannelService;
import com.untour.im.server.service.impl.UserChannelServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class LinkConfiguration {
    @Bean
    public UserChannelService userChannelService(ImConfigProperties imConfigProperties,
                                                 List<DeviceMultiLoginService> deviceMultiLoginServiceList){
        return new UserChannelServiceImpl(imConfigProperties,deviceMultiLoginServiceList);
    }
}
